var $ = require("../../utils/Ajax.js");
Page({
  data: {
    MyBillIndex: 0,
    // MyBillNav: ["财富豆交易", "现金记录"],
    Bill: []
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "财富豆交易"
    }) 
    $.Ajax("api/userRecharge","GET",{},function(res){
      if(res.s){
        that.setData({
          Bill: res.d.userBalance
        })
      }else{
        wx.showToast({
          title: res.m,
          icon: 'success',
          duration: 1500
        })
      }
    })
  },
  
  // 点击
  MyBill: function (e) {
    var Index = e.currentTarget.dataset.index_;
    this.setData({
      MyBillIndex: Index
    })
  }
})